const express = require('express');
const router = express.Router();

router.get('/', (req, res) => {
    const content = [];
    for(let i = 0; i < 40; i++) content.push({
        id: `${i + 1}`,
        distributorCode: '10921',
        serviceStation: 20,
        brandRatio: 0.1,
        reachingRatio: 0.2,
        repairedRatio: 0.3,
        appointmentRatio: 0.4,
        cheryRotio: 0.5,
        workBaysRotio: 0.6,
        advisorsRotio: 0.7,
        techniciansRotio: 0.8,
        fiveYearSalesRotio: 0.11,
        isSafetyReachRotio: 0.22,
        sparePartRateRotio: 0.33,
        normalArrived: 12,
        urgentArrived: 21,
        fulfillRotio: 0.55,
        averageClosedDaysRotio: 0.78,
        complaintClosedRotio: 0.59
    });
    res.json({
        message: '',
        payload: {
            content,
            totalElements: 41,
        }
    });
});

module.exports = router;
